#coding:utf-8
#!/usr/bin/python3
# Filename: test.py
# import sss_new
#
# sss_new.sum(10,10)
#
# print(sss_new.bj(35,12))


s = "abcdef"
# print(len(s))
#
# a = len(s)-1
# while a>=0:
#     print(s[a])
#     a-=1

# for n in range(len(s)):
#     print(s[len(s)-n-1])

# for i in range(1,10):
#     for j in range(1,i+1):
#         print("{}*{}={}".format(j,i,i*j),end=" ")
#     print()

# list1 = ["aaa","bbb","ddfd",99,"youku"]
# a = "abcddeef"
# list1.extend(a)
# print(list1)
#
# aa = list1.pop(1)
# print(aa)
# print(list1)
# print(list1.count('e'))
#作业实现extend的功能，使用循环
#['aaa', 'bbb', 'ddfd', 99, 'youku', 'a', 'b', 'c', 'd', 'd', 'e', 'e', 'f']

#队列
# from collections import deque
# queque = deque(['aaa', 'bbb', 'ddfd', 99, 'youku'])
#
# queque.append("xxx")
# print(queque)
# q =queque.popleft()
# print(q)
# print(queque)
# queque.popleft()
# print(queque)


l = ['as',99,"sdfsd",'s',[1,23,4,"sdf"],[1,4,3,"abc"]]
print(l[4][1])
print(l[4][3])
l[4]="wallace"
print(l)
del l[4]
print(l)